<!DOCTYPE html>
<html>

<!-- 开始 HEAD -->
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta charset="utf-8" />
    <title><block name="TITLE">邦兔-专业亚马逊工具，亚马逊工具就选邦兔。</block></title>
    <meta name="description" content="overview &amp; stats" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />

    <!-- 开始 系统 必须 css-->
    <link rel="stylesheet" href="Application/Home/Static/bt/css/mian.css"type="text/css" />
    <link rel="stylesheet" href="Application/Home/Static/bt/assets/css/bootstrap.min.css" type="text/css" />
    <link rel="stylesheet" href="Application/Home/Static/bt/assets/css/jquery-ui.css" type="text/css" />
    <link rel="stylesheet" href="Application/Home/Static/bt/css/media.css" type="text/css"/>
    <link rel="stylesheet" href="Application/Home/Static/bt/css/logo.css" type="text/css" />
    <!-- 结束 系统 必须 css-->
    <!-- 开始 全局 插件 样式-->
    <link rel="stylesheet" href="Application/Home/Static/bt/assets/css/ace.css" type="text/css" class="ace-main-stylesheet"/>
    <link rel="stylesheet" href="Application/Home/Static/bt/assets/css/font-awesome.css" type="text/css" class="ace-main-stylesheet"/>
    <!--[if lte IE 8]>
    <link rel="stylesheet" href="Application/Home/Static/bt/css/mainie8.css" type="text/css" />
    <link rel="stylesheet" href="Application/Home/Static/bt/css/mediaIe8.css" type="text/css" />
    <![endif]-->
    <!-- 结束 全局 插件 样式-->
</head>
<!-- 结束 HEAD -->
<body class="no-skin" >
<!-- 开始 头 -->
    <div id="navbar" class="navbar navbar-default headerStyle backgFD1">
    <div class="navbar-container" id="navbar-container" style="margin: 0 20px;">
        <button type="button" class="navbar-toggle menu-toggler pull-left" id="menu-toggler" data-target="#sidebar">
            <span class="sr-only">Toggle sidebar</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </button>
        <div class="navbar-header pull-left" style="matgin-top:3px">
            <a href="http://www.51bangtu.com" class="navbar-brand">
                <img src="Application/Home/Static/bt/img/log.png" />
            </a>
        </div>
        <!-- 开始 登录-->
        <if condition="is_login()">
            <php>
                $uid = query_user(array( 'uid'));
                $user_info = D('UcenterMember')->where('status=1 and id='.$uid['uid'])->find();
            </php>
            <!-- 开始 用户 已登录-->
            <div class="navbar-buttons navbar-header pull-right labeichage" role="navigation" style="height:65px">
                <a href="#" class="navItme" style="position: relative;">
                    <span>{$user_info.email}欢迎您</span>
                    <!--<i class="ace-icon fa fa-envelope-o"></i>
                    <div class="shopIcon"></div>-->
                </a>
                <a href="#" class="setBtnClick navItme" style="position: relative;">
                    <span>账户设置</span>
                    <b class="arrow fa fa-angle-down dwonStle setStyle colorb9"></b>
                    <div class="setItme">
                        <ul>
                            <li class="userManageClick" data-index="6">Amazon授权</li>
                            <li class="userManageClick" data-index="5">账户管理</li>
                            <li class="userManageClick" data-index="4">我的信息</li>
                        </ul>
                    </div>
                </a>
                <a href="{:U('Home/Index/help')}" class="navItme" target="_blank">
                    <span class="helpStyle">使用帮助</span>
                </a>
                <a href="{:U('Ucenter/System/logout')}" class="navItme" id="logout">退出</a>
            </div>
            <!-- 结束 用户 已登录-->
            <else/>
            <!-- 开始 用户 未登录-->
            <div class="navbar-buttons navbar-header pull-right labeichage" role="navigation">
                <a href="{:U('Home/Index/help')}" target="_blank" >使用帮助</a>
                <a href="{:U('Ucenter/Member/register')}" class="logoRegisterBtn marginLeft40 labeiTop615">注册</a>
                <a href="#" class="logoBtn labeiLeft20 modalClick" data-toggle="modal" data-target="#shopModal">登录</a>
            </div>
            <!-- 结束 用户 未登录-->
        </if>
        <!-- 结束 登录-->

    </div>
</div>
<!-- 结束 头 -->
<!--开始 选项卡-->
<div class="main-container" id="main-container">

    <!--开始 选项卡-->
    <div id="sidebar" class="sidebar responsive backgB">
        <ul class="nav nav-list sidebarUlLeft" style="position: relative;">
            <li class="class1
            <if condition="$action eq 'index'">
            hreadChage
            <else/>
            colorB
            </if>
            navlistchage bhover">
                <a href="{:U('Home/Index/index')}"><img src="Application/Home/Static/bt/img/bang<if condition="$action eq 'index'">_</if>1.png" /></a>
            </li>
            <li class="class2
            <if condition="$action eq 'commission'">
            hreadChage
            <else/>
            colorB
            </if>
             navlistchage bhover">
                <a href="{:U('Home/Index/commission')}"><img src="Application/Home/Static/bt/img/bang<if condition="$action eq 'commission'">_</if>2.png" /></a>
            </li>
            <li class="class3 colorChage
            <if condition="$action eq 'product'">
            hreadChage
            <else/>
            colorB
            </if>
            <if condition='is_login()'>navlistchage bhover productDataPage<else/>modalClick</if>" clickType="product" data-toggle="modal" data-target="#shopModal">
                <a href="<if condition='is_login()'>{:U('Home/Index/product')}<else/>#</if>">
                    <img src="Application/Home/Static/bt/img/bang<if condition="$action eq 'product'">_</if>3.png" />
                </a>
            </li>

            <div class="leftArrow"
            <if condition="$action eq 'product'">
            style="top:15%"
            <elseif condition="$action eq 'commission'" />
            style="top:48%"
            <elseif condition="$action eq 'product'" />
            style="top:83%"
            </if>>
            <img src="Application/Home/Static/bt/img/left.png" /></div>

        </ul>

        <div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
            <i class="ace-icon"><img src="Application/Home/Static/bt/img/lefts.png" /></i>
        </div>
    </div>
<!--结束 选项卡-->

<!-- 开始 内容 页-->
<div class="main-content backEB">

    <!-- 开始 右侧 内容 -->
    <block name="CONTENT"></block>
    <!-- 结束 右侧 内容 -->

</div>
<!-- 结束 内容 页-->
</div>
</body>

<!-- 开始 核心 插件 -->
    <script src="Application/Home/Static/bt/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="Application/Home/Static/bt/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="Application/Home/Static/bt/assets/js/ace/ace.js" type="text/javascript"></script>
    <script src="Application/Home/Static/bt/assets/js/ace/ace.sidebar.js" type="text/javascript"></script>
    <script src="Application/Home/Static/bt/assets/js/jquery-ui.js" type="text/javascript"></script>
    <script src="Application/Home/Static/bt/assets/js/jquery-ui.custom.js" type="text/javascript"></script>

    <script src="Application/Home/Static/bt/js/cookie.js" type="text/javascript" charset="utf-8"></script>
    <script src="Application/Home/Static/bt/js/Plugins/medal/medal.js" type="text/javascript"></script>
    <script src="Application/Home/Static/bt/js/mian.js" type="text/javascript"></script>
    <script src="Application/Home/Static/bt/js/ajax.js" type="text/javascript"></script>
    <script src="Application/Home/Static/bt/js/keywordAjax.js" type="text/javascript"></script>
    <script src="Application/Home/Static/bt/js/keyword.js" type="text/javascript" charset="utf-8"></script>
    <script src="Application/Home/Static/bt/js/ZeroClipboard.js" type="text/javascript" charset="utf-8"></script>
    <script src="Application/Home/Static/bt/js/Plugins/spin/spin.min.js" type="text/javascript" charset="utf-8"></script>

    <!--[if lte IE 8]>
    <script src="Application/Home/Static/bt/assets/js/html5shiv.js"></script>
    <script src="Application/Home/Static/bt/assets/js/respond.js"></script>
    <script src="Application/Home/Static/bt/assets/js/isplaceholder.js"></script>
    <![endif]-->

    <!--解决IE8的placeholder的兼容问题-->
    <script src="Application/Home/Static/bt/build/sea.js" type="text/javascript" charset="utf-8"></script>
    <script src="Application/Home/Static/bt/build/css3.js" type="text/javascript" charset="utf-8"></script>
    <script>
        $(function(){
            var is_login = '{$islogin}';

            seajs.config({
                debug: true,
                base: "/Application/Home/Static/bt/build/"
            }).use(["placeholder"], function() {
            });

            /*各国的货币改变*/
            var flag = true;

        });

        function chageBtncity(_this,_index){
            var attry = ["($)","(£)","(€)","(€)","(¥)"];
            var money = ["US","UK","FR","DE"];
            var _html = "";
            var moneys = "";
            _html = attry[_index];
            if(_index == 4){
                if(flag){
                    _html = attry[_index];
                    flag = false;
                }else{
                    _html = attry[0];
                    flag = true;
                }
            }

            $("#simple-table thead tr th").find(".coin").html(_html);
            $(".money").html(money[_index]);
        }

        function deleteBtn(obj){

            if(obj.parentNode.parentNode.rowIndex == 1){
                $(".contextResult").css("display","none");
            }
            var index = obj.parentNode.parentNode.rowIndex;
            var table = document.getElementById("table");
            table.deleteRow(index);

            //cookie的有效下标
            var _index = $.cookie("_index");
            /*设置缓存的有效时间*/
            var data = new Date();
            data.setTime(data.getTime()+(0.1*60*1000));
            $.cookie('submitResult'+_index,null,{expires:data});
            $.cookie('modalValue'+_index,null,{expires:data});
            $.cookie('amzMarketTxt'+_index,null,{expires:data});
            $.cookie("_index",_index-1);
        }



    </script>
<!-- 结束 核心 插件 -->

<!-- 开始 页面 级 插件 -->
<block name="JAVASCRIPT_PAGE_LEVEL_PLUGINS"></block>
<!-- 结束 页面 级 插件 -->

<!-- 开始 页面 级 代码 -->
<block name="JAVASCRIPT_PAGE_LEVEL_CODE"></block>
<!-- 结束 页面 级 代码 -->

</html>